<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/head.jsp"%>
<c:if test="${not empty errorMessage }">
	<div class="bjui-pageContent">
		<h3>${errorMessage}</h3>
	</div>
</c:if>
<c:if test="${empty errorMessage }">
	<div class="bjui-pageContent">
		<h3>${modifybean.name }</h3>
		<form action="${ctx}/sys/addQuesUser.do" id="j_custom_form" data-toggle="ajaxform">
			<input type="hidden" value="${modifybean.id}" name="quesId"/>
			<div class="col-1">
				<c:forEach items="${list }" var="item">
					<fieldset>
						<legend style="font-weight: normal;">${item.name }：</legend>
						<c:forEach items="${item.list }" var="itemlist" varStatus="itemliststa">
							<div class="bs-callout bs-callout-warning">
								<h4>${itemliststa.count}.${itemlist.question }</h4>
								<c:if test="${itemlist.typesel=='单选' }">
									<p>
										<c:forEach items="${itemlist.list}" var="ansitem">
											<input type="radio" name="score_${itemlist.id}" value="${ansitem.id }"> ${ansitem.options }<br />
										</c:forEach>
									</p>
								</c:if>
								<c:if test="${itemlist.typesel=='多选' }">
									<p>
										<c:forEach items="${itemlist.list}" var="ansitem">
											<input type="checkbox" name="score_${itemlist.id}" value="${ansitem.id }"> ${ansitem.options }<br />
										</c:forEach>
									</p>
								</c:if>
								<c:if test="${itemlist.typesel=='填空' }">
									<p>
										<input type="text" name="score_${itemlist.id}" data-rule="required">
									</p>
								</c:if>
							</div>
						</c:forEach>
					</fieldset>
				</c:forEach>


			</div>
		</form>
	</div>
	<div class="bjui-pageFooter">
		<ul>
			<li>
				<button type="button" class="btn-close" data-icon="close">取消</button>
			</li>
			<li>
				<button type="submit" class="btn-default" data-icon="save">提交</button>
			</li>
		</ul>
	</div>
</c:if>
